← Back to issue list

Snapcraft crashes with UnicodeDecodeError

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1796813
Type
issue
State
open
Author
~dragly
Labels
Created
2018-10-09 07:40:37.305621+00:00
Updated
2018-10-09 08:05:25.141166+00:00
Closed
2018-10-09 08:05:24.499198+00:00

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

We just updated our travis-ci configuration in a project by running snapcraft enable-ci travis --refresh The resulting build on Travis fails with a UnicodeDecodeError while parsing the resulting snapcraft.cfg: Snapped neuronify_v1.3.2+git7.f143c69_amd64.snap Pushing neuronify_v1.3.2+git7.f143c69_amd64.snap After pushing, an attempt will be made to release to 'edge' Using local configuration ('.snapcraft/snapcraft.cfg'), changes will not be persisted. Sorry, an error occurred in Snapcraft: Traceback (most recent call last): File "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')() File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 161, in push snapcraft.push(snap_file, channel_list) File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 537, in push store = storeapi.StoreClient() File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_store_client.py", line 30, in __init__ self.conf = config.Config() File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 171, in __init__ self.load() File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 226, in load config = f.read() File "/usr/lib/python3.5/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 1: invalid start byte We would appreciate it if you created a bug report at https://launchpad.net/snapcraft/+filebug with the above text included. Script failed with status 1 The complete build log can be found here: https://travis-ci.org/CINPLA/neuronify/jobs/438987878

Evaluation history

No evaluation history available.